vhost:
  papi.local:
    -
      name: papi-local
      host_header: papi-local.jobstreet.com
      document_root: /var/www/html/api-root
      additional_config:

      rewrite_rule:
        -
          regex: ^/monitor(.*)
          replacement: v/index.php/monitor$1

        -
          regex: ^/(v[^/\?]*)/$
          replacement: /$1/doc/swagger.html

        -
          regex: ^/(v[^/\?]*)/(.*(swagger).*)$
          replacement: /$1/doc/$2

        -
          regex: ^/(v[^/\?]*)/((css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf))$
          replacement: /$1/doc/$2

        -
          regex: ^/(v[^/\?]*)/(.*(favicon|robots|sitemap).*)$
          replacement: /$1/$2

        -
          regex: ^/(v[^/\?]*)/(.*)$
          replacement: /$1/index.php/$2

        #-
        #  regex: ^/(.+)$
        #  replacement: /v/$1